package prototype;
//TODO 用原型实例指定创建对象的种类，并且通过拷贝这些原型创建新的对象
public class demo {
    public static void main(String[] args) {
        shapeCache.loadCache();
        shape shape = shapeCache.getShape("1");
        shape.getType();
        shape.draw();
        prototype.shape shape2 = shapeCache.getShape("2");
        shape2.getType();
        shape2.draw();
    }
}
